﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using LH.Model.SA;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using XXX.Bo;
using XXX.Models.XXXEntities;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class SaleOrder_AddController : ControllerBase
    { 
        private readonly ILogger<SaleOrder_AddController> _logger;
        public SaleOrder_AddController(ILogger<SaleOrder_AddController> logger)
        { 
            _logger = logger;
        } 

        [HttpPost]
        public Models.RetModelbool Post([FromBody]SaleOrder model)
        {
            //_logger.LogInformation((model));
            U8API u8API = new U8API();
            Models.RetModelbool ret = u8API.InsertSaleOrder(model);
            return ret;
        }

       

    }
}
